.class public Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;
.super Lcom/teewoo/app/bus/inface/BaseActivity;
.source "MyURLCollectionActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;
    }
.end annotation


# instance fields
.field private adapter:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;

.field private addImageView:Landroid/widget/ImageView;

.field private addView:Landroid/view/View;

.field private clearImageView:Landroid/widget/ImageView;

.field private clearView:Landroid/view/View;

.field private hasMore:Z

.field private maxResult:I

.field private moreImageView:Landroid/widget/ImageView;

.field private moreView:Landroid/view/View;

.field private proBar:Landroid/widget/ProgressBar;

.field private progressDlg:Landroid/app/ProgressDialog;

.field private refreshImageView:Landroid/widget/ImageView;

.field private refreshView:Landroid/view/View;

.field private startResult:I

.field private urlCollectionManager:Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;

.field private urlList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/collection/URLCollection;",
            ">;"
        }
    .end annotation
.end field

.field private urlListVeiw:Landroid/widget/ListView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 34
    invoke-direct {p0}, Lcom/teewoo/app/bus/inface/BaseActivity;-><init>()V

    .line 42
    const/4 v0, 0x0

    iput v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->startResult:I

    .line 43
    const/16 v0, 0xb

    iput v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->maxResult:I

    .line 55
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->hasMore:Z

    .line 34
    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 34
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlList:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$10(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;Landroid/app/ProgressDialog;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 56
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->progressDlg:Landroid/app/ProgressDialog;

    return-void
.end method

.method static synthetic access$11(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 42
    iput p1, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->startResult:I

    return-void
.end method

.method static synthetic access$12(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 43
    iput p1, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->maxResult:I

    return-void
.end method

.method static synthetic access$13(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 42
    iget v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->startResult:I

    return v0
.end method

.method static synthetic access$14(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 43
    iget v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->maxResult:I

    return v0
.end method

.method static synthetic access$15(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;Ljava/util/List;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 36
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlList:Ljava/util/List;

    return-void
.end method

.method static synthetic access$16(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/app/ProgressDialog;
    .locals 1
    .parameter

    .prologue
    .line 56
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->progressDlg:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic access$17(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 55
    iput-boolean p1, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->hasMore:Z

    return-void
.end method

.method static synthetic access$18(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 55
    iget-boolean v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->hasMore:Z

    return v0
.end method

.method static synthetic access$19(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/widget/ProgressBar;
    .locals 1
    .parameter

    .prologue
    .line 38
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->proBar:Landroid/widget/ProgressBar;

    return-object v0
.end method

.method static synthetic access$2(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)[I
    .locals 1
    .parameter

    .prologue
    .line 34
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->item_background:[I

    return-object v0
.end method

.method static synthetic access$20(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 40
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->adapter:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;

    return-void
.end method

.method static synthetic access$21(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/widget/ListView;
    .locals 1
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlListVeiw:Landroid/widget/ListView;

    return-object v0
.end method

.method static synthetic access$3(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;
    .locals 1
    .parameter

    .prologue
    .line 37
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlCollectionManager:Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;

    return-object v0
.end method

.method static synthetic access$4(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;
    .locals 1
    .parameter

    .prologue
    .line 40
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->adapter:Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$MySimpleAdapter;

    return-object v0
.end method

.method static synthetic access$5(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 244
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->getLocalData()V

    return-void
.end method

.method static synthetic access$6(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 50
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->addImageView:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$7(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->refreshImageView:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$8(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 52
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->clearImageView:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$9(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)Landroid/widget/ImageView;
    .locals 1
    .parameter

    .prologue
    .line 53
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->moreImageView:Landroid/widget/ImageView;

    return-object v0
.end method

.method private getLocalData()V
    .locals 3

    .prologue
    .line 246
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlCollectionManager:Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;

    iget v1, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->startResult:I

    iget v2, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->maxResult:I

    invoke-virtual {v0, v1, v2}, Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;->getScrollData(II)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlList:Ljava/util/List;

    .line 247
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlList:Ljava/util/List;

    if-eqz v0, :cond_1

    .line 248
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 250
    new-instance v0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$6;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$6;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 295
    :goto_0
    return-void

    .line 275
    :cond_0
    new-instance v0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$7;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$7;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0

    .line 286
    :cond_1
    new-instance v0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$8;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$8;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method private initListener()V
    .locals 2

    .prologue
    .line 94
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->addView:Landroid/view/View;

    new-instance v1, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$2;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$2;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 109
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->refreshView:Landroid/view/View;

    new-instance v1, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$3;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$3;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 148
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->clearView:Landroid/view/View;

    new-instance v1, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$4;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$4;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 193
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->moreView:Landroid/view/View;

    new-instance v1, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$5;

    invoke-direct {v1, p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$5;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 243
    return-void
.end method


# virtual methods
.method public initialUI()V
    .locals 1

    .prologue
    .line 59
    iput-object p0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->context:Landroid/content/Context;

    .line 60
    const v0, 0x7f0a0054

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlListVeiw:Landroid/widget/ListView;

    .line 61
    new-instance v0, Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->urlCollectionManager:Lcom/teewoo/app/bus/manager/collection/URLCollectionManager;

    .line 62
    const v0, 0x7f0a002a

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ProgressBar;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->proBar:Landroid/widget/ProgressBar;

    .line 64
    const v0, 0x7f0a0040

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->addView:Landroid/view/View;

    .line 65
    const v0, 0x7f0a0042

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->refreshView:Landroid/view/View;

    .line 66
    const v0, 0x7f0a0044

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->clearView:Landroid/view/View;

    .line 67
    const v0, 0x7f0a0046

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->moreView:Landroid/view/View;

    .line 69
    const v0, 0x7f0a0041

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->addImageView:Landroid/widget/ImageView;

    .line 70
    const v0, 0x7f0a0043

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->refreshImageView:Landroid/widget/ImageView;

    .line 71
    const v0, 0x7f0a0045

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->clearImageView:Landroid/widget/ImageView;

    .line 72
    const v0, 0x7f0a0047

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->moreImageView:Landroid/widget/ImageView;

    .line 73
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1
    .parameter "savedInstanceState"

    .prologue
    .line 77
    invoke-super {p0, p1}, Lcom/teewoo/app/bus/inface/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 78
    const v0, 0x7f030017

    invoke-virtual {p0, v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->setContentView(I)V

    .line 79
    invoke-virtual {p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->initialUI()V

    .line 80
    invoke-direct {p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;->initListener()V

    .line 82
    new-instance v0, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$1;

    invoke-direct {v0, p0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$1;-><init>(Lcom/teewoo/app/bus/ui/MyURLCollectionActivity;)V

    .line 86
    invoke-virtual {v0}, Lcom/teewoo/app/bus/ui/MyURLCollectionActivity$1;->start()V

    .line 88
    return-void
.end method
